


from DrissionPage import ChromiumPage


page = ChromiumPage()
# page.set.window.max()

tab = page.new_tab()
tab.get('https://swj.pingxiang.gov.cn/col/col3474/index.html')
tab.wait.ele_loaded('.bt-mod-wzpb-02 ')




for i in range(1,15):
    tab.wait.ele_loaded('.bt-mod-wzpb-02 ')
    
    item = tab.ele('tag:a@@target=_top',index=i)
    print(f'{i} --> {item.text}')
    item.click()
    tab.wait.load_start()
    tab.wait.ele_loaded('#zoom')
    tab.back(1)
    